--[[
#---------------------------------------------------------------#
----*	             MTA-DayZ servera       *----
----*                          nick Mr.Fox               *----
----*      	              5!          *----
#---------------------------------------------------------------#
1) login.lua!

:

elseif data[1] =="skin" then
      73  0!

 :

spawnPlayer (player, x,y,z, math.random(0,360), 73, 0, 0)
    73  0
 
 
2)  login.lua,        ,  !
 
:
 
function saveAccounts ()
 
   

addEventHandler ( "onPlayerQuit", getRootElement(), saveAccounts )

   !

function saveAccounts ()
    local account = getPlayerAccount(source)
    if account then
        if isElementInWater ( source ) then
            setAccountData(account,"isDead",true)
        end
		for i,data in ipairs(dataToSave) do
            setAccountData(account,data[1],getElementData(source,data[1]))
        end
	setAccountData(account,"cloth0",getElementData(source,"cloth0") or 0)
	setAccountData(account,"cloth2",getElementData(source,"cloth2") or 0)
	setAccountData(account,"cloth3",getElementData(source,"cloth3") or 0)
	setAccountData(account,"cloth15",getElementData(source,"cloth15") or 0)
	setAccountData(account,"cloth16",getElementData(source,"cloth16") or 0)
	if getElementData(source,"antiRelogWork") then
		createPlayerBody(source)
		setAccountData(account,"isDead",true)
	end		
        local x,y,z = getElementPosition(source)
        setAccountData(account,"last_x",x)
        setAccountData(account,"last_y",y)
        setAccountData(account,"last_z",z)
        destroyElement(getElementData(source,"playerCol"))
        end
    setElementData(source,"logedin",false)
end
addEventHandler ( "onPlayerQuit", getRootElement(), saveAccounts )


3) spawn.lua!

:

elseif data[1] =="skin" then
    73  0

:

spawnPlayer (player, x,y,z, math.random(0,360), 73, 0, 0)
    73  0
 
4)    ,   ! spawn.lua!
 
:

function checkBuggedAccount()
	for i,player in ipairs(getElementsByType("player")) do
		local account = getPlayerAccount(player)
		if not account then return end
		if getElementData(player,"logedin") then
			if getElementModel(player) == 0 then
				spawnDayZPlayer(player)
				outputChatBox(getPlayerName(player).."s   .",getRootElement(),22,255,22,true)
			end
		end
	end	
end
setTimer(checkBuggedAccount,90000,0)

   !

5) survivorSustem.lua!

:

skinTable = {

 :{" ",73},

  73 , 0!

 :

function checkBandit ()

    73  0!

--)))))  )))))))))))))))))))))))))))))))))))